<template>
	<div class="basicGudong">
		<!-- 团队信息照片 -->
		<div class="basicGudong_img">
			<img src="../../../public/images/enterprise/tdxx@2x.png" alt="">
		</div>
		<div class="basicGudong_form">
			<!-- 表格对应的4个圆点 -->
			<div class="lineRadius l1"></div>
			<div class="lineRadius l2"></div>
			<div class="lineRadius r1"></div>
			<div class="lineRadius r2"></div>
			<!-- 团队信息表格 -->
			<table class="ntable">
				<tr>
					<th class="tx">序号</th> 
					<th >团队成员</th>
					<th colspan="">职务 </th>
				</tr>
			    <tr v-for="(item,index) in baseData" :key="index">
			    	<td >{{index+1}}</td>
			     	<td colspan="">{{item.person_name}} </td>
			     	<td colspan="">{{item.position}}</td>
			    </tr> 
			     	
			    </table>
		</div>
	</div>
</template>

<script>
	export default{
		name:'basicTuandui',
		data() {
			return{
				sbcompany:'',
				baseData:[]
			}
		},
		mounted() {
			this.getBasedata()
			this.sbcompany=this.$route.query.comname
			this.$bus.$on('updateComname',async (comname)=>{
				this.sbcompany=comname
				this.getBasedata()
			})
		},
		methods:{
			// 获取团队信息数据
			async getBasedata(){
				this.baseData=[]
				var dt = {
					"params": {
						"normGuid": "8bd45050-ddd1-4d6b-8d7d-7707f0d3a509",
							"fieldList": [{
							    "key":"company_name",
							    "value":this.sbcompany
							}]
					}
				};
				const aaa = await this.$api.post('dcockpit/rest/cockpitApi/searchListNormResult', dt)
				let {custom:{result}}={...aaa}
				this.baseData=result.cockpitData
			},
		}
	}
</script>

<style lang="stylus" rel='stylesheet/stylus' scoped>
	@import "~@/assets/basicGudong.styl"
</style>
